Quick DNS & DHCP question

rkillcrazy
Posts: 44
Joined: Wed May 19, 2010 9:01 am
Location: USA

Quick DNS & DHCP question

Postby rkillcrazy » Thu Dec 23, 2010 7:42 am

Just curious really....

Why, when using the HDA for DHCP & DNS, does DHCP fill up with:

Code: Select all

h111.home.com 192.168.10.111 h112.home.com 192.168.10.112 h113.home.com 192.168.10.113 h114.home.com 192.168.10.114 ...
It's like DHCP/DNS is handing out host-names as well. In fact, when I load new Linux machines, and it asks me for a host-name, it pre-populates the field with one of those HDA-generated names. This is unlike any other DNS/DHCP server I've ever dealt with. It's confusing too, as one cannot easily distinguish between one PC/server from another by looking in DHCP.

2010-12-23
0942 EST
Amahi HDA:
  • MOBO: ASRock K10N78
  • CPU: AMD Athlon II 64 X2 Dual Core Processor 5600+
  • RAM: 2-GB (dual-channel)
  • HDDs: WD20EARS (qty: 4)
HTPC:
  • Boxee Box
  • Popcorn Hour A-400

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Quick DNS & DHCP question

Postby bigfoot65 » Thu Dec 23, 2010 8:34 am

I have noticed that too. What I do for my network is assign static IPs for most. Also, my Windows machines have a user friendly name set and that shows up in the DHCP area. If it is not set, then I get the H and number.

Seems like if the DHCP server can determine the hostname, it will use it otherwise assign its own. Not an expert, but that has been my experience.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

User avatar
rgmhtt
Posts: 421
Joined: Sun Jan 11, 2009 9:26 am

Re: Quick DNS & DHCP question

Postby rgmhtt » Thu Dec 23, 2010 8:47 am

Amahi is set to pre-populate the DNS with these host names. Check out the files in:

/var/named/dynamic

Please note that Amahi does NOT run DNS chrooted. There are problems with Dynamic DNS and chrooted BIND that is SUPPOSEDLY fixed in F14 (cpg we need to check that out and maybe finally run NAMED chrooted?).

But if you give your host a name, when it gets a DHCP lease that name DYNAMICALLY replaces the default name for the duration of the lease.

Just the way it got set up.

I am really looking forward to F14 for BIND; at least F12 is MUCH better than F10 was.

rkillcrazy
Posts: 44
Joined: Wed May 19, 2010 9:01 am
Location: USA

Re: Quick DNS & DHCP question

Postby rkillcrazy » Thu Dec 23, 2010 9:15 am

I was just curious...it's not like it's breaking anything per se`.

I too am waiting for F14. (Any ETA on that?) Obviously all my machines (Windows and Ubuntu) have hostnames and I figured they'd show up in there. No worries though. If you figure it'll be different in the new release, I'll wait to see what happens then. Speaking of which, I'm assuming there'll be some sort of upgrade-path to the new release once it's all said and done....

2010-12-23
1114 EST
Amahi HDA:
  • MOBO: ASRock K10N78
  • CPU: AMD Athlon II 64 X2 Dual Core Processor 5600+
  • RAM: 2-GB (dual-channel)
  • HDDs: WD20EARS (qty: 4)
HTPC:
  • Boxee Box
  • Popcorn Hour A-400

User avatar
rgmhtt
Posts: 421
Joined: Sun Jan 11, 2009 9:26 am

Re: Quick DNS & DHCP question

Postby rgmhtt » Thu Dec 23, 2010 12:00 pm

If you have a hostname configured for a system, you should see a A record for it near the end of the hda-n2a.conf file. My XP system named 'mavis' results in the following:

$TTL 7200 ; 2 hours
Mavis A 192.168.128.5
TXT "31c506d17b2b451224a36142fd7e6fc5e2"

Of course there is still the record

h005 A 192.168.128.5

present. But in the hda-a2n.conf file there is:

$TTL 7200 ; 2 hours
5 PTR Mavis.home.htt.

So the reverse lookup works right.

Who is online

Users browsing this forum: No registered users and 45 guests