PDA

View Full Version : Resolve by name just broke today


jaakan
May 18th, 2007, 08:12 PM
I just got JFFNMS instaled on 7.04 server cleanly.
I was trying to fix the email not going out so I removed postfix and installed sendmail with aptitude.

After a little bit pinging by name stopped working


jaakan@LRL-JFFNMS-01:~$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
jaakan@LRL-JFFNMS-01:~$

ok how do I fix this without reinstalling this server?

jaakan
May 18th, 2007, 10:03 PM
I found a fix

sudo vi /etc/dhcp3/dhclient.conf
look for #prepend domain-name-servers and change it to this

prepend domain-name-servers xxx.xxx.xxx.xxx, xxx.xxx.xxx.xxx;
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, host-name,
netbios-name-servers, netbios-scope;


sudo vi /etc/network/interfaces
add dns-nameservers xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx

After hours of a linux headache


thanks to markthecarp and dbott67 and others

http://ubuntuforums.org/showthread.php?t=8359
http://ubuntuforums.org/showthread.php?t=447254&highlight=prepend+domain-name-servers