LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-23-2012, 02:16 AM   #1
cbtshare
Member
 
Registered: Jul 2009
Posts: 645

Rep: Reputation: 42
Dynamic DNS on linux


on windows server, any client gets a ip address(once joined the domain), the machine name gets put in the DNS server along with the ip address...

How can I achieve this on linux?(Would I have to make the linux server a Domain Controller?)

Thanks
 
Old 02-23-2012, 02:27 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
no need for domain controllers, you just need dhcp and bind with dynamic updates between the two.

Actually if this is only a very small implementation, you can use a service like dnsmasq which will provide both DNS and HCP and share the data between the two sides automatically. Not suitable for larger implementations, but home use, it's great, and very simple.
 
1 members found this post helpful.
Old 02-23-2012, 06:23 AM   #3
cbtshare
Member
 
Registered: Jul 2009
Posts: 645

Original Poster
Rep: Reputation: 42
Ahh, cool, so whats the other alternative for dnsmasq..I have dhcp and bind, is there a tool similar to (dnsmasq) to do it?
 
Old 02-23-2012, 06:25 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
no, dhcpd and bind ARE the tools. http://www.debianadmin.com/howto-set...in-debian.html
 
Old 02-23-2012, 06:41 AM   #5
cbtshare
Member
 
Registered: Jul 2009
Posts: 645

Original Poster
Rep: Reputation: 42
I also tried the dnmasq and it isnt quite what I was looking for.I wanted to see all the names and ip address in the dns server file.I checked and it only had the ipaddress I manually put in there.Or am I doing something wrong...
 
Old 02-23-2012, 07:50 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
dnsmasq just forms the dns records in memory, no need for it to write to file.
 
Old 02-23-2012, 08:20 AM   #7
cbtshare
Member
 
Registered: Jul 2009
Posts: 645

Original Poster
Rep: Reputation: 42
yea, I want to be able to look in the zone file and see the ipaddresses added.
 
Old 02-23-2012, 01:12 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
that's not exactly an important feature now is it?? try doing a zone transfer, that's probably a better option.
 
Old 02-23-2012, 06:50 PM   #9
cbtshare
Member
 
Registered: Jul 2009
Posts: 645

Original Poster
Rep: Reputation: 42
Well it is kinda important, As a system Admin, you wanna see user's pc given ip-addresses .In windows you would look in the DNS, where do you go in linux?(And would dynamic dns enable that? because dnsmasq doesn't)
 
Old 02-24-2012, 02:28 AM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well what are you actually after? DNS or DHCP or just auditing? Bind, the worlds most prolific DNS server by a LONG LONG way doesn't do this, zone files are only relevant on load, and are managed much more effectively by internal data structures which would be of no use to a human. If you provide Bind with a dynamic update, it uses a journal file to track the changes, and it's not until you would restart the service that it will potentially commit the data back to a conventional zone file.

As above, do a zone transfer.
 
Old 02-24-2012, 06:52 AM   #11
cbtshare
Member
 
Registered: Jul 2009
Posts: 645

Original Poster
Rep: Reputation: 42
In windows as the name suggests, it transfers the zone from another dns server.Not sure if this is what you mean (as it wouldn't help my cause). I am not sure if your familiar with windows DNS, but in it, you can see the machine names and their respective ip addresses given by the dhcp server.I need to see in linux the above said .

PS..My DNS and DHCP server is the same.
 
Old 02-24-2012, 06:56 AM   #12
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Do a zone transfer:

dig mydomain.com AXFR

This will, access control permitting, provide a dynamically generated zone file from the DNS server. I've written simple bash scripts in the past which will do an axfr and mangle the output into a wiki page which is then automatically uploaded to a wiki server, so there is a safe offline place to see this data, no need to go to MMC etc.

http://docstore.mik.ua/orelly/networ...ns/ch12_09.htm

Last edited by acid_kewpie; 02-24-2012 at 07:00 AM.
 
  


Reply



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
Dynamic DNS in Redhat Enterprise Linux 5.2 sudarshan.bisht Linux - Networking 1 12-14-2010 03:18 AM
Restricting Dynamic Ipaddress by based on Dynamic DNS host names karthik9110 Linux - Newbie 5 12-13-2009 11:46 PM
Dynamic DNS Server Linux? Hewson Linux - Server 4 07-14-2007 02:40 PM
Dynamic DNS Updater for Linux dalibork Linux - Networking 3 08-24-2004 10:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:20 PM.

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
Open Source Consulting | Domain Registration