-
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.
-
$ 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?
-
Senior Member
registered user
The dig command will only display DNS queries.
For gateway info:
netstat -r
or
route
For IP address, netmask, broadcast:
ifconfig -a
-

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.
-
-
Similar Threads
-
By woodsmoke in forum General Support
Replies: 2
Last Post: 01-31-2010, 05:00 AM
-
By enthusiast in forum Networking
Replies: 2
Last Post: 07-13-2006, 04:53 PM
-
By ezust in forum Networking
Replies: 1
Last Post: 10-16-2005, 08:45 PM
-
By LTCM in forum Networking
Replies: 0
Last Post: 02-10-2004, 06:59 PM
-
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
-
Forum Rules

Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 32GB RAM No HDD
$378.93

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD
$275.00

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 64gb / Raid / 2x 1Tb
$374.99

Dell PowerEdge R240 Intel Xeon E-2224 3.50GHz 8GB DDR4 ECC NO HDD 250W
$285.97

Dell Poweredge R810 4x Xeon X7560 2.26ghz 32-Cores | 256GB | 3x Trays | H700
$289.99

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Core | HBA330 | No RAM or HDD
$149.99

Dell PowerEdge R730 8 Bay Server 64Gb 1x80Gb SSD 3x900Gb SAS 2x12c v4CPU Proxmox
$620.00

Dell PowerEdge R640 10SFF 2x Gold 6140 2.3GHz 36-Cores 64gb H730p 2x Trays
$599.99

Dell PowerEdge R530 2x E5-2630v4 H330 iDRAC8 Port Card Riser No PSU/RAM/HDD
$99.99

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores | 32gb | HBA330 | 2x 1...
$324.99