/etc/resolv.conf question. Max Search Entries.
Hi All,
I was wondering how many search entries you can add to /etc/resolv.conf for instance. search domain.com search domain.com.au search localdomain.local nameserver IP.ADD.RE.SS nameserver IP.ADD.RE.SS It appears that which is last on the list works fine, For instance, ping server.localdomain.local = Success ping server.domain.com.au = fail ping server.domain.com = fail change the order, so .local is on top! ping server.localdomain.local = fail ping server.domain.com.au = fail ping server.domain.com = Success wtf? Anybody know what the limit is? Does the order matter? Just in case: nameserver 1 = domain.com & domain.com.au nameserver 2 = localdomain.local Server2 forwards requests to Server1, Server1 forwards to ISP DNS. Reading the man page for resolv.conf, it tells me to check the header for resolv.. lucky me, I have it! Quote:
But in practice, that doesn't seem to be the case. It doesn't like you having more than one.. To test it, I added the directive: options no-check-names to /etc/resolv.conf (as one of our domains contains an underscore) But it hasn't made any difference. I thought maybe because the second DNS server is authoritative for the first names, that it would need to be first, so I reversed them.. nothing. I even added secondary copies of each domain to the DNS servers, so each is a backup for the other. Then tried adding "options rotate", nothing. I looked into it online, and it appears to be an inherent limitation of glibc, which they have no intention of fixing... so, should I just put BIND on the box? Any ideas ? |
lmfao.. figured it out, you have to put the search directives on one line!
search localdomain.local domain.com.au domain.com nameserver XXX nameserver XXX Works a charm! Phew! |
All times are GMT -5. The time now is 08:56 PM. |