Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 09-22-2007, 04:09 PM   #1
LQ Newbie
Registered: May 2006
Posts: 13

Rep: Reputation: 0
DHCP/DNS Server Setup


I am trying to get a more secure network running at home. I want to set up a DHCP/DNS/Proxy/Router server on a spare machine at work.

Until then I thought I would set this configuration up on a virtual machine to aid my learning (using openSUSE 10.2 by the way)

I have created a virtual machine with 2 network cards. The first card eth0 connects to my home router ( subnet. It obtains an IP address through DHCP.

The second card eth1 is set to a static IP of It serves as the gateway for the other machines on the network.

The DHCP server is running fine. I have created a dhcp range on the subnet and set Gateway and DNS server address to

I then added some routing/IP forwarding from to (my internet router).

Testing on a Windows XP VM on the same virtual switch. Picked up an IP successfully on network and was able to ping an internet address.

So the DHCP is working but I am having trouble with the DNS Server.

I have set up my Forwarder List to my ISP's DNS Servers (this is obviously working as I can ping an internet address from the xp machine).

I have created a master dns zone (bfnet). Zone transport is set to "any". I have added my nameserver to the NS records "bf001u.bfnet."

My problem is that the dns entries do not seem to register. By this I mean that I am unable to ping my dns server (bf001u) from the xp machine and am unable to ping the xp machine from the dns server. Pinging the IP addresses does get a reply. Also checked in /var/log/messages and it does show the XP machine host name on the DHCPREQUEST.

Can anyone tell me what is wrong in my setup. External DNS requests are working but internal ones are not.

Many thanks,
Old 09-22-2007, 05:19 PM   #2
Senior Member
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
listening port
post config file
Old 09-23-2007, 04:45 PM   #3
LQ Newbie
Registered: May 2006
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks for the reply. nslookup and dig did not find my dns server. Lookings at resolv.conf and named.conf it does not look like I have made the necessary changes to assist in internal name resolution - at the moment it is only working as a caching service for external domains.
I have found a good article on the setup of an internal dns server so will give this a go tomorrow as will have the physical machine to play around with.

I still consider myself to be a linux newbie and the transition from Microsoft OS's to linux has been quite a challenge. Even though I have a sore head after today, when I do get it working it will be a rewarding experience and I will begin to reap the benefits.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
help needed to setup a DNS server can anyone say how to configure a DNS server subha Linux - Networking 4 04-28-2012 12:50 AM
setup dummy interface running DHCP and DNS for VM scheidel21 Linux - Wireless Networking 0 08-29-2007 01:46 PM
windows-style dns/dhcp server setup with dynamic updates Linux - Server 1 08-24-2007 12:00 AM
how to setup a solaris 8 dhcp server to do dynamic dns updates smiller71 Solaris / OpenSolaris 0 04-02-2004 03:16 PM
DHCP is setup. Now, DNS before Samba?? itsjustme Linux - Networking 3 06-17-2003 09:33 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:17 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration