LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-02-2013, 03:26 PM   #1
charlweed
Member
 
Registered: Jan 2005
Posts: 46

Rep: Reputation: 15
Programs are using external network for id info, instead of LAN.


My host “foobar” used to only exist within my LAN. The Ethernet interface, em1, is manually statically configured, everything worked fine. However, I recently added an external internet interface p2p1, and that NIC is configured with DHCP. The problem is that now many programs use p2p1 for things like ip-address, hostname and nameservice, instead of the LAN interface, em1.

For example my build system is messed up because ant sets the properties to:
ADDR4=76.102.69.112
DOMAIN=hsd1.ca.comcast.net
NAME=c-76-102-69-112

Instead of

ADDR4=192.168.0.3
DOMAIN=hymerfania.com
NAME=foobar

How do I fix this?
Thanks!
 
Old 01-02-2013, 06:24 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,340

Rep: Reputation: Disabled
The programs aren't using an interface to obtain the local hostname, they use information from /etc/hosts and possibly /etc/HOSTNAME, and the OS performs lookups using the DNS server(s) specified in /etc/resolv.conf.

The problem is probably that the DHCP client modifies these files. You can probably tell it not to with a command line switch or a check mark in the right box. Exactly how you do this, depends on the distribution you're using.
 
  


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
is motherboard LAN chipset relevant, with external network equipment? newbiesforever General 1 06-03-2008 12:16 AM
how to test network programs with out LAN connectivity on FC5 morningkiran Linux - Networking 3 02-07-2007 02:38 AM
System Info Programs ODMahowny Linux - Software 2 06-19-2006 02:04 AM
Need Info about Linux Programs FireInTheDark Linux - Newbie 5 08-14-2004 08:24 AM
LAN interface on Gateway stops being able to send info to LAN intermittantly. BurnFEST Debian 2 11-01-2003 03:16 AM

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

All times are GMT -5. The time now is 10:56 AM.

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