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.
Distribution: Redhat, Fedora, Open BSD, FreeBSD, SlackWare
Posts: 115
Rep:
DHCP server not resolving address
Dear all, Welcome again.
I have a problem in configuring DHCP server in Redhat 9, using dhcp rpm dhcp-3.0pl1-23, all is working fine (I think so ). The problem I face is my client obtain IP from DHCP server but when I run "nslookup" command from client or "dig" from DHCP server both unable to resolve DNS server name. and also unable to resolve any client name. I dont know what is happening.. I uninstall bind rpm and bind-devel rpm from DHCP server only bind -util rpm is installed in DHCP server.. also no error in my messege log fine when I ran nslookup from client pc or from DHCP server.
My nslookup command gives me this error.
c:\> nslookup
DNS request timed out.
timeout was 2 seconds.
*** Can't find server name for address 192.168.1.2: Timed out
*** Default servers are not available
Default Server: UnKnown
Address: 192.168.1.2
THIS IS MY "dhcpd.conf" file.
ddns-update-style interim;
ignore client-updates;
# My domain DHCP server
subnet 192.168.1.0 netmask 255.255.255.0 {
ddns-updates on;
ddns-domainname "dhcpserver.mydomain.com";
ddns-rev-domainname "in-addr.arpa.";
option routers 192.168.1.2;
option subnet-mask 255.255.255.0;
option domain-name "dhcpserver.mydomain.com";
option domain-name-servers 192.168.1.2;
option broadcast-address 192.168.1.255;
option ip-forwarding on;
option netbios-name-servers 192.168.1.2;
range dynamic-bootp 192.168.1.10 192.168.1.150;
default-lease-time 86400;
# we want the nameserver to appear at a fixed address
host funpc {
option host-name "funpc.mydomail.com";
hardware ethernet 00:A0:2R:XC:2C:32;
fixed-address 192.168.1.2;
deny unknown-clients;
}
}
Distribution: Redhat, Fedora, Open BSD, FreeBSD, SlackWare
Posts: 115
Original Poster
Rep:
yes I dont have any DNS server in my network, Its means I have to install bind rpm's in my DHCP server so users can user nslookup??
and do I have to configure DNS zone files also for my network or just create them and DHCP automatically update them??
you should be able to add your local ISP's DNS's IP in
option domain-name-servers x.x.x.x;
in your dhcpd.conf, then you don't have to install bind. Just make sure that this DHCP server isn't giving out adresses to the internet in anyway. Then your ISP will not be happy with you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.