Find the answer to your Linux question:
Results 1 to 3 of 3
So I started out trying to sync pacman, but that didnt work. I then tried to ping a website... That didn't work. I then read a bit online, opened my ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2011
    Posts
    15

    Network Problems (Resolv.conf empty)


    So I started out trying to sync pacman, but that didnt work. I then tried to ping a website... That didn't work. I then read a bit online, opened my resolv.conf file... All of the content (a template), was commented out. There was no data in the file at all. So... I guess I have to fill it out by hand. How can I go about doing this?

  2. #2
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,630
    I would imagine Arch works like CRUX in that you could run as su:
    Code:
    /sbin/dhcpcd eth0
    ...to get you assigned an IP from your router or ISP and it would also get your /etc/resolv.conf filled in. Then, configure for static IP if you wish to do so. Here's my /etc/resolv.conf as a reference...

    Code:
    # Generated by dhcpcd for interface eth0
    search myisp.net
    nameserver 123.145.167.89
    nameserver 123.145.9.10
    
    search mynameserver
    nameserver 10.0.0.1
    Linux Mint + IceWM Registered: #371367 New Members: click here

  3. #3
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    3,043
    Example of network information from my /etc/rc.conf as you can see I use static IP and the router has IP 192.168.1.1
    Code:
    interface=eth0
    address=192.168.1.2
    netmask=255.255.255.0
    broadcast=192.168.1.255
    gateway=192.168.1.1
    and /etc/resolv.conf has
    Code:
    nameserver 192.168.1.1

Posting Permissions

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