Domain Name Resolving
Much thanks.
6 Replies
@glg:
do you have DNS servers in /etc/resolv.conf? does DNS resolution work from a command line (eg nslookup/host/dig)?
root@mud:/etc# nslookup
> root@mud:/etc# nslookup www.google.com
Server: 97.107.133.4
Address: 97.107.133.4#53
Non-authoritative answer:
www.google.com canonical name = www.l.google.com.
Name: www.l.google.com
Address: 64.233.169.103
Name: www.l.google.com
Address: 64.233.169.99
Name: www.l.google.com
Address: 64.233.169.147
Name: www.l.google.com
Address: 64.233.169.104
root@mud:/etc# host www.google.cat
cawww.google.cat CNAME www.google.com
www.google.com CNAME www.l.google.com
www.l.google.com A 64.233.169.103
www.l.google.com A 64.233.169.99
www.l.google.com A 64.233.169.147
www.l.google.com A 64.233.169.104
root@mud:/etc# cat /etc/resolv.conf
domain members.linode.com
search members.linode.com
nameserver 97.107.133.4
nameserver 207.192.69.4
nameserver 207.192.69.5
root@mud:/etc#
Firstly, I don't know if that means it's working or not, and second, I was curious if not setting my domain name in resolv.conf or somewhere else would cause this.
@hoopycat:
Often times, applications will have a setting for whether or not to do reverse lookups. Doing it in real time is relatively useless, and they can take a long time to perform. It looks like your DNS stuff is set up correctly, so I'd check your application's settings to see if there's something for that.
If it's not a setting, check to see if the application requires some kind of dns library that you don't have installed (eg perl's Net::DNS, aka libnet-dns-perl in debian/ubuntu).