LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-08-2014, 06:29 PM   #1
linuxStudent11
Member
 
Registered: Jun 2007
Posts: 164

Rep: Reputation: 18
my hostname not sent to OpenWRT


I'm using pdnsd on my Debian squeeze system. It lives on the lan side of OpenWrt. Everything works except my hostname does not appear inside OpenWRT. My hostname appears as * inside OpenWRT. My IP address appears fine. Why?

This also means that if I dig or nslookup my hostname on the OpenWRT server, it doesn't know my hostname. I also can't reference the hostname from any other box in my home. IP addressing works everywhere. But no hostname addressing.

I'm guessing its just a pdnsd.conf setting somewhere. How do I export my hostname to OpenWRT so it knows my box's name?

Last edited by linuxStudent11; 10-08-2014 at 06:31 PM.
 
Old 10-09-2014, 08:28 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,213

Rep: Reputation: 6100Reputation: 6100Reputation: 6100Reputation: 6100Reputation: 6100Reputation: 6100Reputation: 6100Reputation: 6100Reputation: 6100Reputation: 6100Reputation: 6100
What do you mean by inside OpenWRT? Are you referring to the DHCP client list?
I assume your using DHCP to acquire an IP address so look at your dhclient.conf file to see if it has a send host-name directive.
 
1 members found this post helpful.
Old 10-09-2014, 09:58 AM   #3
linuxStudent11
Member
 
Registered: Jun 2007
Posts: 164

Original Poster
Rep: Reputation: 18
"Inside OpenWRT" means inside the OpenWRT html interface, sorry. Call the OpenWRT machine "Gracie". It lists current dhcp leases. That table has only * for ip addresses where a pdnsd is running.
This computer (where I'm typing now, call it george) is listed in that Gracie's OpenWRT table as having a * for george.
And yes, you assume correctly. The Gracie OpenWRT DHCP chooses the IP address for george.
So I'll look in both George and in Gracie for a dhclient.conf file.
yup, in George, the "send" directive is commented out. I'll fix.
 
Old 10-09-2014, 10:16 AM   #4
linuxStudent11
Member
 
Registered: Jun 2007
Posts: 164

Original Poster
Rep: Reputation: 18
Thanks loads michaelk. My firewall can now tell other machines my hostname.
aside: I wonder if I modify the equivalent in my firewall, I can cause my BIG-telecom ISP to do my bidding regarding my home when their dhcp gives my home an IP lease!?! (within reason).
 
Old 10-09-2014, 10:51 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,213

Rep: Reputation: 6100Reputation: 6100Reputation: 6100Reputation: 6100Reputation: 6100Reputation: 6100Reputation: 6100Reputation: 6100Reputation: 6100Reputation: 6100Reputation: 6100
Don't know if the ISPs will actually use the hostname if sent.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
HOSTNAME = hostname -> HOSTNAME: command not found ? thomas2004ch Linux - Software 2 08-26-2013 08:25 PM
getting errors related to hostname -- security problem? ok to change hostname? sneakyimp Linux - Server 2 11-18-2012 05:25 PM
clients CAN resolve hostname of server w/nslookup, but CANNOT access by hostname WTF? psycroptic Linux - Networking 9 11-10-2012 11:24 AM
Changed hostname during install, now CUPS has wrong hostname on web interface slinx Linux - Software 1 08-07-2009 08:01 PM
after hostname change, syslogd still output previous hostname to messages file tiger2000 Linux - General 3 07-22-2009 09:36 PM

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

All times are GMT -5. The time now is 11:05 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