This tag must be used for generic questions pertaining to host name resolution which involves several mechanisms like the local hosts file, DNS and NIS (Yellow Pages). If your question is specific to one of those mechanisms, use the appropriate tag instead.
Questions tagged [host-name-resolution]
47 questions
21
votes
3 answers
How do `/etc/hosts` and DNS work together to resolve hostnames to IP addresses?
In Linux, how do /etc/hosts and DNS work together to resolve hostnames to IP addresses?
if a hostname can be resolved in /etc/hosts, does DNS apply after /etc/hosts
to resolve the hostname or treat the resolved IP address by
/etc/hosts as a…
Tim
- 98,580
- 191
- 570
- 977
16
votes
3 answers
How can it be that ssh somename works, while nslookup somename does not?
How to know the IP address of some host somename I can ssh to? If I do nslookup on this host it says "no answer". How can ssh resolve it's name then?
Neither /etc/hosts nor .ssh/config explanation worked.
EDIT
Sorry somename is fully…
Dims
- 3,181
- 9
- 49
- 107
12
votes
5 answers
Resolving NETBIOS names from Linux
There's a Windows machine called SUSAN on my network. From a Windows VM on my Linux box I can simply:
C:\>ping susan
I've followed this guide (and looked at several other similar ones) for resolving NETBIOS names from my Linux box itself.
I…
Juicy
- 3,685
- 11
- 31
- 44
8
votes
2 answers
How to get remote host DNS address from a super-slim host (docker) without ping or bind-utils?
How do I get a remote host IP address if I don't have ping, and don't have any bind utilities like dig, nslookup, etc?
I need an answer that does not include 'install X' or 'use sidecar container'. I am looking for something that relies on nothing…
Inquisitor Shm
- 183
- 3
7
votes
1 answer
Why DNS stops resolving under QEMU "user networking" when the host roams to a particular network?
I use GNOME Boxes on a laptop. The guest machines get the Internet connection automatically with default settings whenever the laptop moves between networks (Ethernet, Wi-Fi in different locations, or a cellular phone as a USB modem).
The guest…
Roman Riabenko
- 2,145
- 3
- 15
- 39
6
votes
2 answers
DNS resolution problem with Fedora 20
I have a newly built Fedora 20 server that I've just hooked to my network. It's a virtual server running on a VirtualBox host. Everything seems to be working but I have a problem with name resolution.
(I should say at this point that name resolution…
user73426
3
votes
0 answers
OpenWrt: Find neighbors knowing their MAC address
I have an Open Mesh access point connected to the same router (an Aerohive BR100) than an Axis camera. I would like to automate the discovery of the camera's IP from inside the Open Mesh sensor, knowing the camera's MAC address.
This bad Ascii art…
Savir
- 1,221
- 1
- 17
- 24
3
votes
1 answer
What is meant by "OS resolver libraries" that are used by the "dig" command?
I know that dig queries the DNS server in the /etc/resolv.conf
but I read that the difference between dig and nslookup is that dig uses OS resolver libraries.
But what are the OS resolver libraries?
user3737708
- 31
- 1
3
votes
1 answer
Temporary failure in name resolution after upgrade to Debian Buster
I upgraded a few machines to Debian Buster and everything went well so far—although when running apt upgrade before apt full-upgrade I ran into a
Temporary failure in name resolution. This was fixable and only an issue during the process and did…
karlsebal
- 795
- 8
- 20
3
votes
2 answers
Get public IPs of accessed webpages?
I would like to be able to get the public IPs of the websites I am accessing with my PC in a way such as:
www.google.es - public IP1
www.cdn.facebook.com - public IP2
and so on. I think this should be done by logging DNS traffic, so I tried using…
Ruben
- 133
- 3
3
votes
0 answers
DNS resolution problem with OpenBSD
During boot up, messages flashed on my computer screen, among which are the following:
DHCPACK from 192.168.200.1
bound to 192.168.200.12----> renewal in 432600 seconds
The contents of my /etc/hosts file:
127.0.0.1 localhost
::1 localhost
The…
2
votes
2 answers
Why accessing 0.0.0.0:443 gets redirected to 127.0.0.1:443 on Linux and how to disallow it?
tl;dr: accessing 0.0.0.0:port (eg. curl http://0.0.0.0:443) gets redirected(internally) to 127.0.0.1:port (where port is any port number) (eg. the previous curl command is the same as curl http://127.0.0.1:443); why does this happen and how to block…
correabuscar
- 45
- 6
2
votes
1 answer
why Host command returns SERVFAIL
I tried to use host command for my blog jfeatures.com and getting error (SERVFAIL). I am using google domains for the blog and it is powered by github pages.
$ host jfeatures.com
jfeatures.com has address 185.199.111.153
jfeatures.com has address…
Vipin
- 163
- 1
- 2
- 7
2
votes
1 answer
Linux/Windows client resolve Linux hostname on LAN
According to Debian's RPi3 image wiki, I should be able to ssh into a Raspberry-Pi, with just the hostname. I shared internet from my Debian laptop, WiFi to the a Raspberry-Pi over Ethernet, but the hostname never resolved.
What kind of…
Oxwivi
- 2,232
- 4
- 23
- 31
1
vote
2 answers
How I alias a hostname without root access vis-a-vis gethostbyname?
I'm running a program which does (in its source code):
gethostbyname("whatever");
and I want it to use the local machine's address instead. I can't change the source. If I were root, it would be easy-peasy - I would just alias this name in…
einpoklum
- 8,772
- 19
- 65
- 129