Find the answer to your Linux question:
Results 1 to 8 of 8
I got problem in my internet every time when system is boot or network is disconnected i have to enter the DNS address(number) primary and secondary...
  1. #1
    ved
    ved is offline
    Linux User ved's Avatar
    Join Date
    Jan 2008
    Location
    New Delhi
    Posts
    309

    Smile Network Problem

    I got problem in my internet every time when system is boot or network is disconnected i have to enter the DNS address(number) primary and secondary

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Where do you enter this information? In /etc/resolv.conf, or elsewhere?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    ved
    ved is offline
    Linux User ved's Avatar
    Join Date
    Jan 2008
    Location
    New Delhi
    Posts
    309

    Smile

    Menu>administration > Network configuration>Dns

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Ok. I would suggest that you manually edit /etc/resolv.conf and add your DNS server addresses there. Here is an example (from my system):
    search apfrmsys.com
    nameserver 68.94.156.1
    nameserver 68.94.157.1
    nameserver 199.45.32.37
    nameserver 199.45.32.40
    nameserver 192.168.1.254
    The first line tells the DNS resolver to search on my domain first. The first two nameserver addresses are my ISP's DNS servers. The next two are Bell-Atlantic (top-level servers), and the last one is my local router. See the man page for resolv.conf for more details on what you can put in there.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  5. #5
    ved
    ved is offline
    Linux User ved's Avatar
    Join Date
    Jan 2008
    Location
    New Delhi
    Posts
    309

    Smile

    which line have to add or edit the number i enter every time as dns is 202.56.215.54
    202.56.230.55
    [ved@localhost ~]$ cat /etc/resolv.conf
    # Generated by NetworkManager


    # No nameservers found; try putting DNS servers into your
    # ifcfg files in /etc/sysconfig/network-scripts like so:
    #
    # DNS1=xxx.xxx.xxx.xxx
    # DNS2=xxx.xxx.xxx.xxx
    # DOMAIN=lab.foo.com bar.foo.com
    nameserver 202.56.215.54
    nameserver 202.56.230.55

  6. #6
    Linux Engineer Freston's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    1,047
    I think the problem is that resolv.conf is overwritten on every DHCP request. Is your router set up to supply the correct DNS servers?

    Otherwise you'd have to set DHCP_KEEPRESOLV[n] to yes. Somewhere. Or something similar. I'm not sure on flavours of Red Hat.
    Can't tell an OS by it's GUI

  7. #7
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Any line that starts with a hash (#) is a comment. Just delete all of them and only leave the nameserver lines. I generally don't use the Network Manager for DNS server management because it causes this sort of foulup too often. If this is for a desktop or server system, then don't use DHCP to get a network address, but rather you should use a static address instead. That will help eliminate this problem since using DHCP will rewrite /etc/resolv.conf every time you boot, which may be your real problem.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  8. #8
    ved
    ved is offline
    Linux User ved's Avatar
    Join Date
    Jan 2008
    Location
    New Delhi
    Posts
    309

    Smile

    thanks for more support i just configure static IP then the problem is resolve now resolv.conf
    is same as you tell editing # from resolv.conf is now
    Code:
    [ved@localhost ~]$ cat /etc/resolv.conf
    # Generated by NetworkManager
    nameserver 202.56.215.54
    nameserver 202.56.230.55

Posting Permissions

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