DNS lookup using host IP not working [closed] - dns

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have set up a master DNS server using isc-bind. My problem is that when I try to look up hostnames from the same computer, it works when using localhost but not when I use the IP of the host.
This gives the correct answers:-
dig #localhost www.google.com
But this says "connection timed out; no servers could be reached"
dig #192.168.0.1 www.google.com
Here's my resolv.conf
nameserver 127.0.0.1
And when I run ping to 192.168.0.1, I get replies. What am I doing wrong here ??

Your instance of BIND is probably only listening on the loopback interface (127.0.0.1) and won't answer when addressed by an IP address that's associated with a real physical interface (your 192.168.0.1)
Look in your named.conf file for the listen-on directive. You may also need to change the allow-query ACL.

Related

How can I find my IP address when inside a Server [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I have a Linux server is hosting in a host company. I don't know what is the public IP address of the server. I can only ssh to the server using their Cloud access. I'm wondering if there's any tools that I can use to tell what is the public IP address of the Server I'm inside.
This cyberciti.biz article Expline how to find your public IP address.
To show IP address of server use this command: ifconfig -a.
I found this website service that you can create a link URL then send a request to that URL to reveal your IP Address and header details which is cool.
https://www.requestheader.com/

bug with "hostname -i" [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
when i type :
hostname -i
my return is returning something really strange (for security it is not the real ip)
2001:db8:1f89::%et0 2001:db8:1f89::%eth1 2001:db8:1f89::%eth2 192.168.1.1 192.168.1.2
i have the same configuration on many other machine
and i dont fint why its is not returning the right thing, it should be only the ip set in the /etc/hosts file.
192.168.1.1
i tried :
hostnamectl
changing the /etc/hosts file
checked the /etc/host.conf
nmcli hostname
/etc/sysconfig/network
/etc/hostname
reboot
nothing point to this
regards,
Using the -i option display the network addresses of the host name, including the loopback interface and IPv6 link-local addresses.
Using the -I option display all network addresses of the host excluding loopback interface and IPv6 link-local addresses.
Sometime reading the man could be enough. Just type man hostname :)

OpenVPN multiple IP addresses [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I have an OpenVPN server running on my Linux box and it's working fine. The server has a lot of IP addresses but it only uses one for all the clients (of course).
Is it possible to use multiple IP addresses (public) on the same server?
If you post this question on ServerFault, this post will get more eyeballs.
OpenVPN can listen on multiple IP addresses. The directive local sets the IP address(s) it listens on. Here is an excerpt from OpenVPN man page.
--local host
Local host name or IP address for bind. If specified, OpenVPN will bind to this address only. If unspecified, OpenVPN will bind to all interfaces.
Watch out if you have multiple public IP addresses on multiple interfaces. You may have to resort to some sort of port forwarding. Probably you should make OpenVPN listen on a single interface, preferably local interface and port forward traffic coming from various public IP's to this Interface.

Hacked — got an IPv6 address, need hostname [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
So I've got a problem... A few days ago I got hacked; someone logged on to an account of mine. So after a few clicks,
I managed to get the IP Address: 2a02:a03f:1043:8500:75eb:6b9f:a26:8733
It's an IPV6 address; I don't care to post it here — it's not mine. So what I want to do: get the hostname of that IP address.
I can't tracert it, I can't ping it and the DNS lookup doesn't give a hostname.
I'm not going to do anything with the IP Address, but if I may get a hostname, it will be possible to know who did it, and confront them with the issue.
Omnomnom,
You can try https://enc.com.au/itools/inet6num to get the hostname of ipv4/6

ifconfig never shows current IP address? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I wish to know my current IP address (as the world sees it) via linux command line. I used ifconfig but it doesn't display the same ip address as is displayed on the website ip-details.com.
is there a way to get the current IP address from command line in linux?
thanks in advance
To find your external IP use the following command
$ dig myip.opendns.com #resolver1.opendns.com +short
This would give your IP as seen by a website
dig command is a DNS lookup utility.
DIG (domain information groper) is a flexible tool for interrogating DNS name servers.
It performs DNS lookups and displays the answers that are returned from the name server(s) that were queried
Are you using a VM (or) you are trying ifconfig from machine directly connected to internet ?
If you are trying from a VM it will not show. You have to try at host machine

Resources