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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
09-01-2002, 12:40 PM
|
#1
|
Member
Registered: Jul 2002
Location: Tampa Bay area of FLORIDA!
Distribution: Slackware 8.1
Posts: 76
Rep:
|
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! 
|
|
|
09-01-2002, 12:48 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
09-01-2002, 12:53 PM
|
#3
|
Member
Registered: Jul 2002
Location: Tampa Bay area of FLORIDA!
Distribution: Slackware 8.1
Posts: 76
Original Poster
Rep:
|
 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! 
|
|
|
09-01-2002, 01:32 PM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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
|
|
|
09-02-2002, 11:42 AM
|
#5
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
well...? ahm a waitin...
|
|
|
09-02-2002, 02:57 PM
|
#6
|
Member
Registered: Jul 2002
Location: Tampa Bay area of FLORIDA!
Distribution: Slackware 8.1
Posts: 76
Original Poster
Rep:
|
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.
|
|
|
09-02-2002, 03:38 PM
|
#7
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
All times are GMT -5. The time now is 10:08 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|