Hi there --
I have one of our servers set up to reference two nameservers and two search domains via the /etc/resolv.conf file. Here is a filtered version of the file:
Quote:
nameserver <ip address>
nameserver <ip address>
search <first domain> <second domain>
# generated by NetworkManager, do not edit!
|
I am trying to do lookups, via the nslookup and host commands, of remote servers, but I am getting errors which indicate that when the search is done, the above search domains are concatenated to hostname being searched. Here is an example:
Quote:
host database.clamav.net
Host database.clamav.net.<second domain> not found: 3(NXDOMAIN)
|
If I remove either of the domains from the search line, the output has the other domain attached to the output. If I remove the entire search line, I get a REFUSED error message.
The server in question is outside our company's firewall, and it is using iptables as its security. There is an exception that allows DNS to go outbound from the server. Here is the syntax:
Code:
$IPTABLES -A OUTPUT -p tcp --dport 53 -m state --state NEW -j ACCEPT
$IPTABLES -A OUTPUT -p udp --dport 53 -m state --state NEW -j ACCEPT
What is causing this to occur, and how can I correct it? Thanks.