Results 1 to 6 of 6

Thread: dhcp works but static doesn't

  1. #1
    Member registered user
    Join Date
    Jul 2005
    Posts
    47

    dhcp works but static doesn't

    i read about /etc/resolv.conf, /etc/hosts, and /etc/rc.d/rc.inet1.conf but what i don't have information about is how do i extract correct information for gateway, netmask ,etc. ifconfig shows correct settings but i'm trying to do it with assumption of dhcp server diabled by router.

  2. #2
    Member registered user
    Join Date
    Jul 2005
    Posts
    47
    $ dig linuxquestions.org

    ; <<>> DiG 9.2.3rc2 <<>> linuxquestions.org
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45220
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 0

    ;; QUESTION SECTION:
    ;linuxquestions.org. IN A

    ;; ANSWER SECTION:
    linuxquestions.org. 3600 IN A 64.179.4.149

    ;; AUTHORITY SECTION:
    linuxquestions.org. 3600 IN NS ns1.linuxquestions.org.
    linuxquestions.org. 3600 IN NS ns2.linuxquestions.org.
    linuxquestions.org. 3600 IN NS ns1.linuxquestions.net.

    ;; Query time: 211 msec
    ;; SERVER: 192.168.1.1#53(192.168.1.1)
    ;; WHEN: Thu Sep 9 22:57:54 2004
    ;; MSG SIZE rcvd: 124

    this was the output in linuxqustions.org site. is this a correct method to extract dns information? what if i don't have information on gateway address?

  3. #3
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Long Island, NY USA
    Posts
    1,510
    The dig command will only display DNS queries.

    For gateway info:
    netstat -r
    or
    route

    For IP address, netmask, broadcast:
    ifconfig -a

  4. #4
    Member registered user
    Join Date
    Jul 2005
    Posts
    47
    Quote Originally Posted by UnderScore
    The dig command will only display DNS queries.

    For gateway info:
    netstat -r
    or
    route

    For IP address, netmask, broadcast:
    ifconfig -a
    thanks underscore for your help. what if i don't have network properly configured beforehand? actually all these refer not neccesarily to ethernet connection but wireless network through router. i get errors saying 'hostname not found' when i try to set gateway by 'ifconfig eth1 gw xxx.xxx.x.1'. i can see access points in iwconfig. now, at this stage i know from experience if i do 'dhcpcd eth1' internet connection is there. but if i try to do it static ip it doesn't seem to work.

  5. #5

  6. #6

Similar Threads

  1. .flv works convert to .avi works VideoDownload helper
    By woodsmoke in forum General Support
    Replies: 2
    Last Post: 01-31-2010, 05:00 AM
  2. Two Problems: eth0 down and dhcp to static IP switch
    By enthusiast in forum Networking
    Replies: 2
    Last Post: 07-13-2006, 04:53 PM
  3. netcardconfig only works with DHCP?
    By ezust in forum Networking
    Replies: 1
    Last Post: 10-16-2005, 08:45 PM
  4. Replies: 0
    Last Post: 02-10-2004, 06:59 PM
  5. DHCP works then it DOES NOT WORK
    By dugstratton in forum Networking
    Replies: 3
    Last Post: 01-15-2004, 08:30 PM

Posting Permissions

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


ORICO Multi Bay RAID Hard Drive Enclosure USB 3.0/ Type-C For 2.5/3.5'' HDD SSDs picture

ORICO Multi Bay RAID Hard Drive Enclosure USB 3.0/ Type-C For 2.5/3.5'' HDD SSDs

$191.99



Lacie 2big 6TB Raid External Drive Mac Thunderbolt 2 & USB Excellent Condition picture

Lacie 2big 6TB Raid External Drive Mac Thunderbolt 2 & USB Excellent Condition

$145.00



5 Bay RAID Hard Drive Enclosure USB3.1 TypeC for 2.5

5 Bay RAID Hard Drive Enclosure USB3.1 TypeC for 2.5" 3.5" SATA HDD SSD - New

$59.99



OWC Guardian Maximus Raid Enclosure SATA Hard Drive FireWire picture

OWC Guardian Maximus Raid Enclosure SATA Hard Drive FireWire

$36.99



Dell PERC H330 PCIe 3.0 x8 RAID Storage Controller 4Y5H1 High Profile picture

Dell PERC H330 PCIe 3.0 x8 RAID Storage Controller 4Y5H1 High Profile

$13.99



9207-8i PCIE3.0 6Gbps HBA LSI FW:P20 IT Mode ZFS FreeNAS unRAID 2* SFF-8087 US picture

9207-8i PCIE3.0 6Gbps HBA LSI FW:P20 IT Mode ZFS FreeNAS unRAID 2* SFF-8087 US

$32.88



LSI MegaRAID 9361-8i 12Gbps PCIe 3 x8 SATA SAS 3 8 Port RAID + BBU & CacheVault picture

LSI MegaRAID 9361-8i 12Gbps PCIe 3 x8 SATA SAS 3 8 Port RAID + BBU & CacheVault

$39.00



Inspur LSI YZCA-00424-101 Raid Card 12Gbps HBA Controller Low Profile 9300-8i IT picture

Inspur LSI YZCA-00424-101 Raid Card 12Gbps HBA Controller Low Profile 9300-8i IT

$15.98



G-TECHNOLOGY 4TB G-RAID EXTERNAL HARD DRIVE ARRAY WITH THUNDERBOLT LOW USAGE picture

G-TECHNOLOGY 4TB G-RAID EXTERNAL HARD DRIVE ARRAY WITH THUNDERBOLT LOW USAGE

$113.99



Yottamaster 5 Bay RAID Hard Drive Enclosure Type-C B For 2.5

Yottamaster 5 Bay RAID Hard Drive Enclosure Type-C B For 2.5" 3.5" SATA HDD SSDs

$140.99