Find the answer to your Linux question:
Results 1 to 3 of 3
My Fedora 17 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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2006
    Posts
    26

    Programs are using external network for id info, instead of LAN


    My Fedora 17 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!

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,598
    You need to configure your routing and ip tables to look at the internal network for internal network addresses and dns names first before it goes to the p2p connection and externally for that information/connections.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    OK, the problem with DHCP is it over-writes /etc/resolv.conf file which is the file that tell the system where to look for DNS resolution.
    If you want to stop this you are going to have to add a rule to iptables to modify all port 53 request and point them to your internal DNS server.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •