What command do I use to find addresses for DNS Gateway DHCP local ipaddress? Like in windows when you use ipconfig -all it shows all this stuff.
What command do I use to find addresses for DNS Gateway DHCP local ipaddress? Like in windows when you use ipconfig -all it shows all this stuff.
will show the local IP, but not the DNS.Code:ifconfig
Last edited by uRock; August 18th, 2013 at 08:56 PM.
Cheers & Beers, uRock
[SIGPIC][/SIGPIC]
I know if you install curl you can run
And get the Internet ip address you're using.Code:curl ifconfig.me
There are other elaborate ways such as the site checkip.
But, yes as per the thread ifconfig is the linux equivalent of ipconfig.
Last edited by deadflowr; August 18th, 2013 at 11:49 PM. Reason: Twas wrong thinking
Splat Double Splat Triple Splat
Earn Your Keep
Don't mind me, I'm only passing through.
Once in a blue moon, I'm actually helpful.
Curl worked for me ok. what shows the ip for dhcp server and gateway ip?
You can try
Which should at least list the gateway address.Code:nm-tool
Splat Double Splat Triple Splat
Earn Your Keep
Don't mind me, I'm only passing through.
Once in a blue moon, I'm actually helpful.
With recent version of the network-manager package, you also get 'nmcli' - which goes a bit deeper than nm-tool e.g.
Code:nmcli dev list nmcli dev list iface wlan0 nmcli dev list | grep '^IP\|^DHCP'
curl ifcongfig.me yields XX.XX.XX.XX
ifconfig is 192.168..1.70
is the XX.XX.XX.XX my external gatway ip address?
Last edited by lisati; August 19th, 2013 at 02:45 AM. Reason: Obfuscated public IP address to help protect privacy
yes that is your external IP.
if you are using ubuntu(unity) at the clock at top right click on network icon at the bottom 2nd from bottom is the connection information. will show you the gateway and dns servers.
Forum DOs and DON'Ts
Please use CODE tags
Including your email address in a post is not recommended
My Blog
Bookmarks