Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm having trouble with DNS on a Slackware 9 system. The machine is set up as a DHCP client, talking to a FreeBSD DNS/DHCP server. The SW9 box has no problems getting an IP lease, but the DNS is failing. When I try "nslookup sylvester" I get a "server can't find sylvester: NXDOMAIN" response. I tried host and DIG to get more information but they didn't help much. I know NXDOMAIN means a non-existent domain, but I don't know how that can be. The resolv.conf has the right nameserver and search domain.
The dhclient.conf on the host is:
interface "eth0"
{
send host-name "sylvester";
}
The other FreeBSD machines are fine with the same dhclient.conf and happily look up the other BSD and Windows boxes on the network. It seems to me that I'm not sending the right hostname to the DNS box.
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418
Rep:
Im not that familiar with Slack, but in RH (and i assume there's a similar file in slack) there's a file called ifcfg-eth0 in the /etc/sysconfig/network-scripts directory.
If you put an entry in there with DHCP_HOSTNAME="yourhostname" it should work. (At least, that did the trick for me...)
Ha ha ha ho ho ho am I STOOOOOPID or what? The corresponding file is rc.inet1 in the /etc/rc.d directory for Slackware. I tried using the entry for DHCP_HOSTNAME, except that I did something wrong. I could save face here by just saying "thanks, that worked", but I think everyone needs a good laugh now and then. I didn't put the hostname in, did I? I had the #$%^&@! SERVER name in there. Sigh. Now that I've changed it to the hostname, everything works.
Yeeeesh, if I was any dumber, I'd think that a proprietary OS with the GUI welded to the kernel was a really good idea....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.