Announcement

Collapse
No announcement yet.

/etc/resolv.config

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    /etc/resolv.config

    Hi everyone,

    What does this file contain generally?

    /etc/resolv.config

    thx
    Kubuntu Hardy Heron 8.04 <br />VAIO VGN-FS415M

    #2
    Re: /etc/resolv.config

    I used /etc/resolv.conf for manually editing DNS servers when Intrepid Network Manager was not able to set network. It was necessary to edit also /etc/network/interfaces to set ip adresses and start $sudo /etc/init.d/networking restart
    to make it work. I use it until now in Jaunty, but there are better ways.
    Kubuntu 16.04 on two computers and Kubuntu 17.04 on DELL Latitude 13

    Comment


      #3
      Re: /etc/resolv.config

      Information that looks like this:

      domain earthlink.net
      search earthlink.net
      nameserver 207.69.188.186
      nameserver 207.69.188.187


      /etc/resolv.conf is usually loaded automatically when the network starts up. You shouldn't have to edit this file. If you do, then your networking configuration has been messed up.
      "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
      – John F. Kennedy, February 26, 1962.

      Comment


        #4
        Re: /etc/resolv.config

        Originally posted by GreyGeek
        If you do, then your networking configuration has been messed up.
        That is only if you are doing networking exactly like everybody else. Editing resolv.conf is sometimes necessary to do what you want. Even Windoze will allow that.

        Comment


          #5
          Re: /etc/resolv.config

          Originally posted by mando_hacker
          Originally posted by GreyGeek
          If you do, then your networking configuration has been messed up.
          That is only if you are doing networking exactly like everybody else. Editing resolv.conf is sometimes necessary to do what you want. Even Windoze will allow that.
          True, but when a system automatically populates resolv.conf any manual edits you make may get replaced. I haven't been using Kubuntu long enough to know, but I do know that Mandriva, for example, pays no attention to /etc/resolv.conf, which is usually empty. It has its own conf file and doesn't want you to edit it because it is loaded automatically. However, for Kubuntu, a quck check with "locate resolv.conf" shows only one occurance of that file, unlike Mandriva.
          "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
          – John F. Kennedy, February 26, 1962.

          Comment


            #6
            Re: /etc/resolv.config

            My manual edits to resolv.conf used to be deleted at the end of the every session. But after manual filling /etc/network/interfaces with ip addresses and after $sudo /etc/init.d/networking restart, they are fixed for months. My resolv.conf contains DNS servers and looks like this:
            Code:
            # Generated by NetworkManager
            
            
            
            
            
            nameserver 213.46.172.36
            nameserver 213.46.172.37
            Kubuntu 16.04 on two computers and Kubuntu 17.04 on DELL Latitude 13

            Comment

            Working...
            X