LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 09-01-2002, 01:40 PM   #1
Milkman00
Member
 
Registered: Jul 2002
Location: Tampa Bay area of FLORIDA!
Distribution: Slackware 8.1
Posts: 76

Rep: Reputation: 15
Question DNS For an internal network???


Hi everyone!

I am trying to make a DNS server for INTERNAL IP addresses only. I just want to be able to resolve IP addresses in my own network. These are not static IP's as I use DHCP, so that is why it is a little harder. ANYWAY. Is there a how-to doc on how to setup BIND for INTERNAL stuff only, and not go outside the network??? I hope this makes sense. Any and all help appreciated!
 
Old 09-01-2002, 01:48 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
only dhcpd 3+ can manage dynamic domains in conjunction with bind. and i've yet to find a document that acutally explains it. there are proprierty solutions that work, but as for the standard open source pacakges, i don't think it's really up for it. i've spent hours trying to make it work, as you need to use secure keys and such like in bind, rndc and dhcpd so that dhcp can dynamically alter the local host file. it aint easy, and tehre are no docs! How big is this network? do the ip's actually change? most dhcp servers will continually give the same ip to the same machine time and time again, inwhich case you can hard code it into bind. maybe go a little step further and force certain ip's to each dhcp client in the first place, which is a pretty conventional thing to do.
 
Old 09-01-2002, 01:53 PM   #3
Milkman00
Member
 
Registered: Jul 2002
Location: Tampa Bay area of FLORIDA!
Distribution: Slackware 8.1
Posts: 76

Original Poster
Rep: Reputation: 15
That is soooo not the answer I wanted to hear! I know what you are saying about hard coding, but that wouldn't work if I wanted to ping a PC from another PC by name (unless I define resolv.conf on every PC, which I do not want to do).

Now I am depressed!
 
Old 09-01-2002, 02:32 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
well one of the pages i tried with was: http://www.performancemagic.com/howtos/ddns.php i did everything, but nothing happened, and also i couldn't find anything to debug, so i kinda hit a brick wall... you can still do what you want, but in a more static way, if you set up your local zone file correctly then you can ping with a host. there's also a more crude approach of building a script file to take the dhcpd.leases information and build a zone file out of that and restart the nameserver, but that's not too nice. i only use a small network but i just set the ip's in both dhcp and bind. like i said though, on a low contention network you are not normally going to get a different ip address, wether you wanted one or not.

oh... you mention about setting resolv.conf on each machine? that certainly wouldn't be necessary, as defining an nic to be set up by dhcp will recreate the resolv.conf file anyway. maybe you actually mean the /etc/hosts file? but anyway, if you are doing dns then this central server would need to be listed in resolv.conf anyway, and it would be the responses from that server that would return the info, not on each machine.

is this gibberish or do you get what i mean? i tend to not finish senten
 
Old 09-02-2002, 12:42 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
well...? ahm a waitin...
 
Old 09-02-2002, 03:57 PM   #6
Milkman00
Member
 
Registered: Jul 2002
Location: Tampa Bay area of FLORIDA!
Distribution: Slackware 8.1
Posts: 76

Original Poster
Rep: Reputation: 15
Sorry about that. I wanted to try out that website you mentioned too, and I didn't get no where with it either. I did laugh with your last line though . I did indeed mean the /etc/hosts file. Sorry about that. Playing so much with Linux that my file names sometimes get screwed up.

Well I hate to come to a dead end here - But I am not sure if there is anything else I can do.
 
Old 09-02-2002, 04:38 PM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
i'm not sure where your dead end is, in that last answer there is a complete solution that only requires administration of two servers on one single linux box. you will never need to manually configure each client, guarenteed.
 
  


Reply


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS registration on internal network acb67 Linux - Networking 4 03-02-2005 02:14 PM
Internal DNS server needed?? jme Linux - Networking 5 09-30-2004 07:53 PM
know what bind, dns, a domain, and an internal network have in common? me neither majortool Linux - Networking 10 07-27-2004 01:42 PM
internal DNS Dawie Linux - Networking 1 09-11-2003 07:31 AM
Linux Internal DNS Problem Help!!!! Sabeer Linux - Networking 6 04-02-2003 02:37 PM


All times are GMT -5. The time now is 08:21 AM.

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