Fórum Root.cz
Hlavní témata => Software => Téma založeno: procsemusimzaregistrovat 02. 09. 2019, 11:39:48
-
Cao,
jsem na debian testingu a v nekterym z poslednich upgradu mi prestal fungovat "search" v /etc/resolv.conf:
# Generated by NetworkManager
search cz.mojedomena.com
search mojedomena.com
nameserver xxx.xxx.xxx.xxx
nameserver yyy.yyy.yyy.yyy
Proste zrezolvovat server.cz.mojedomena.com jde, ale primo server ne, ta domena se k dotazu nepripoji (treba ping server).
Netusite, co to mohlo zpusobit a jak to opravit?
Diky!
-
no problém je v tom # Generated by NetworkManager, teda soubor se sám vytváří nečím jiným
takže změnit v tom jiným, v tomto případě v NetworkManageru.
Jestli ho používáte v GUI, tak tam normálně pod drátovou sítí a IPv4 je políčko "search domains:", tak asi tam
-
Ale v tom asi problem nebude, ty "search" lajny se tam pekne dostanou, ale resolver je ignoruje...
-
Co máte v nsswitch.conf?
cat /etc/nsswitch.conf
-
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
passwd: files systemd
group: files systemd
shadow: files
gshadow: files
hosts: files mdns4_minimal [NOTFOUND=return] dns
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
-
Tak nevím, zatím mě nic netrklo. Na debian fórech nikdo nic podobného neřeší?
Ještě mě napadá mě porovnat výstupy těchto dvou příkazů
host -v server.cz.mojedomena.com
host -v server
a případně i
strace host server.cz.mojedomena.com
strace host server
-
Nemuze byt problem v tom, ze tam jsou ty search radky dva, misto toho aby tam byl jeden s listem?
search cz.mojedomena.com mojedomena.com
search Search list for host-name lookup.
The search list is normally determined from the local domain name; by default, it
contains only the local domain name. This may be changed by listing the desired
domain search path following the search keyword with spaces or tabs separating the
names. Resolver queries having fewer than ndots dots (default is 1) in them will
be attempted using each component of the search path in turn until a match is
found. For environments with multiple subdomains please read options ndots:n below
to avoid man-in-the-middle attacks and unnecessary traffic for the root-dns-
servers. Note that this process may be slow and will generate a lot of network
traffic if the servers for the listed domains are not local, and that queries will
time out if no server is available for one of the domains.
The search list is currently limited to six domains with a total of 256 characters.