Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

openwrt using dhcp host names over hosts

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help!
View previous topic :: View next topic  
Author Message
bobthebob1234
LXF regular


Joined: Thu Jan 03, 2008 9:38 pm
Posts: 1368
Location: A hole in a field

PostPosted: Fri Jul 20, 2012 12:21 am    Post subject: openwrt using dhcp host names over hosts Reply with quote

Not a show stopper, but a minor annoyance

I have my mythtv box called civo, with a static ip of 192.168.1.10. Sometimes it decides it wants to connect to my network over wifi, and then picks up a dhcp address (eg 192.168.1.100).

When this happens and I ping civo, I get 192.168.1.100. Not what I want. I have set up 'civo' as a hostname, pointing to 192.168.1.10 in the openwrt web interface.

I believe openwrt uses Dnsmasq for DNS stuff, so it is probably a problem / 'feature' with that.

Can it be stopped or the order of lookup reversed, so it uses the hosts I have defined first?
_________________
For certain you have to be lost to find the places that can't be found. Elseways, everyone would know where it was
Back to top
View user's profile Send private message
Dutch_Master
LXF regular


Joined: Tue Mar 27, 2007 2:49 am
Posts: 2423

PostPosted: Fri Jul 20, 2012 12:37 am    Post subject: Reply with quote

Yes, you can specify in which order DNS should do the (reverse) lookup, can't remember where though... Also, it is possible to have the DHCP server assign an IP to a specific MAC address. And if possible (can't tell) you may want to blacklist the MAC address of the wifi card in "civo" as to disallow it to make contact that way.
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8369
Location: Warrington, UK

PostPosted: Fri Jul 20, 2012 7:47 am    Post subject: Reply with quote

Wouldn't it be simpler to deal with the cause of the problem and disable the wireless NIC by blacklisting its module?
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help! All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast