Questions tagged [host-name-resolution]

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.

Filter by
Sorted by
Tagged with
0 votes
2 answers
3k views

Can't resolve domain names after upgrading to Debian 12

After upgrading Debian11/KDE to Debian12, restarting and running sudo apt-get upgrade it shows errors like Could not resolve ftp.XX.debian.org. These also show when running sudo apt-get update. I then ...
mYnDstrEAm's user avatar
  • 4,068
1 vote
2 answers
46 views

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 ...
einpoklum's user avatar
  • 8,852
0 votes
0 answers
53 views

How do I access device using hostname that is hosting an access point?

I have an embedded linux device hosting an access point, I set it up like this: sudo apt install dnsmasq-base -y nmcli connection add type wifi ifname wlan0 con-name access_point autoconnect yes ssid ...
av4625's user avatar
  • 101
1 vote
1 answer
60 views

Fedora VM behind NAT can not ping host.domain name on intranet

I am using VirtualBox on Windows now. The network is roughly like this: [Fedora 37 VM] -- NAT network -- [Windows Host] ---- intranet ---- internet I use DNS on intranet to resole host.domain names ...
grizzlybears's user avatar
1 vote
1 answer
262 views

How to advertise hostname to router (via DHCP) in initramfs with dropbear?

I've setup the Debian package dropbear-initramfs to unlock my homeservers disk over SSH. Unfortunately, the router assigns a different IP to the server on every boot and its DNS does not know the ...
Thomas Koch's user avatar
0 votes
1 answer
307 views

Facing issue with systemd-resolved after update

I recently updated my system, but noticed that on reboot, systemd-resolved always fails. So I cannot access any websites even though I have internet connection. I have included an error message that I'...
Life Whiz's user avatar
0 votes
0 answers
296 views

Which IP is chosen when multiple IP addresses in /etc/hosts point to the same name?

My hosts file contains two entries: 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 I ...
d10nte's user avatar
  • 39
2 votes
2 answers
864 views

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....
correabuscar's user avatar
0 votes
0 answers
77 views

Hostname renamed to LINUX by unknown service

My linux lite laptop has hostname set to logan-asus. $ hostnamectl --static hostname logan-asus $ hostnamectl --transient hostname logan-asus I have avahi daemon and ssh server running and when I ...
Logan Lee's user avatar
  • 249
1 vote
4 answers
333 views

Persist resolvectl changes across reboots

I'm using LXC containers, and resolving CONTAINERNAME.lxd to the IP of the specified container, using: sudo resolvectl dns lxdbr0 $bridge_ip sudo resolvectl domain lxdbr0 '~lxd' This works great! But ...
Jonathan Hartley's user avatar
1 vote
0 answers
499 views

Avahi not honoring its own /etc/avahi/hosts on the same machine

scenario I want to use a mostly relatively light-weight way of associating IP addresses with hostnames. For this, I've installed Avahi and mdns/nss on my Fedora distro. I've like to use the pseudo-tld ...
polemon's user avatar
  • 11.2k
1 vote
0 answers
77 views

DNS and long running process (resolver)

I've come across an issue where a Java (1.8) application is continuing to use the DNS servers configured when the process started rather than the current configuration. This persisted for a week ...
symcbean's user avatar
  • 5,110
0 votes
1 answer
210 views

Headless debian: SSH from host machine using hostname

This is for personal use, I have a debian running on a VM. I would like to know if BIND9 is required to be able to SSH using the hostname from host machine or modifying the /etc/hosts and resolv.conf ...
totalnewbie's user avatar
0 votes
1 answer
154 views

Why does systemd-resolvd fail to transparently query its upstream DNS resolver for short hostnames?

I use dnsmasq to provide DHCP service on my LAN. dnsmasq is also providing DNS service. When host foo acquires a an IP address via DHCP, dnsmasq will respond to DNS queries for the name foo by ...
mpb's user avatar
  • 1,511
3 votes
1 answer
367 views

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's user avatar
1 vote
1 answer
421 views

Change priority of mdns4 hostname resolution

We are using a Raspberry Pi which has a Lidar connected to the ethernet port. The problem is that the mdns4_minimal resolves $(hosname).local into two IPs. One IP is obtained from the ethernet port (...
mbostic's user avatar
  • 113
2 votes
1 answer
4k views

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 ...
Vipin's user avatar
  • 163
0 votes
1 answer
31 views

How can I find an identifiable network name over ethernet?

As a network client over wifi, I can get a BSSID that shows a recognizable network name. Are there any equivalent method over an ethernet connection under nixes ? My question concerns personal ...
la Fleur's user avatar
  • 101
0 votes
1 answer
137 views

Ubuntu, network problem

I installed some updates on my Ubuntu Desktop 21.04 through app "Software and Updates", I don't know what kind of software was updated. Internet had worked without problems before I rebooted ...
M.T.'s user avatar
  • 1
0 votes
1 answer
84 views

How do I get the inside of the network to see the server properly? Inside the network, foobar.net doesn't resolve

I'm running MINT 20.1. I am connected to the net via AT&T UVERSE fiber optic. I have a DNS, foobar.net, set up to point at my router, and when I am outside the network, I can load a website ...
Richard Hasting's user avatar
0 votes
1 answer
388 views

How to get name resolution working inside a chroot of a different architecture?

On an amd64 machine running Manjaro Linux, I'd like to be able to resolve names inside an arm chroot, which is Arch Linux ARM. Unfortunately, it's not working. I suspect it might have something to do ...
Sixtyfive's user avatar
  • 144
0 votes
0 answers
370 views

Slow hostname resolution for SSH(git)

Strangest thing. After upgrading to Fedora 33, the git fetch, push and pull commands are SLOW. I've been able to get a bit of trace and debug info using the following command: GIT_SSH_COMMAND="...
Thomas Matecki's user avatar
8 votes
1 answer
6k views

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 ...
Roman Riabenko's user avatar
1 vote
1 answer
46 views

Resolving own LAN IP when the network goes down

I have a headless music server (raspbian buster) running a storage server (minimserver) and a player (upmpdcli) on the same machine. When it's playing, it's fetching the music files via its LAN ...
poolfeast's user avatar
1 vote
0 answers
2k views

How to disable IPv6 short hostname resolution

For a long time I've been able to SSH to other hosts on my network just with the short name, e.g. ssh otherpc and it recognises it's a short name, adds the DNS search suffix, does a lookup for otherpc....
Malvineous's user avatar
  • 6,554
0 votes
2 answers
489 views

Different IP:hostName mappings for same host in `/etc/hosts`. Why does this work?

My scenario Relevant entries in my /etc/hosts (I have them written in the same order you see them here) 172.22.5.107 www.wordpress-rend-adri.com 192.168.1.116 www.wordpress-rend-adri.com I use ...
Adrián Jaramillo's user avatar
0 votes
1 answer
2k views

Host configured with both resolvconf and dnsmasq, restarting dnsmasq keeps pointing to old servers

I have an Ubuntu 16.04.2 LTS host. It is configured to use dnsmasq for DNS forwarding, rather than use resolv.conf populated with nameservers. The configuration is standard wherein resolv.conf just ...
Kahn's user avatar
  • 1,672
3 votes
1 answer
7k views

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 ...
karlsebal's user avatar
  • 795
16 votes
3 answers
5k views

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 ...
Dims's user avatar
  • 3,195
0 votes
2 answers
894 views

SSH-keys ipv4 ipv6 connection issue

Update: I found this question which seems to be very related. Not sure how exactly. What am I missing? I can only use ssh when it resolves through https hostnames? Normal ssh it hangs kinda like ...
volare's user avatar
  • 11
21 votes
3 answers
34k views

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 ...
Tim's user avatar
  • 99.1k
2 votes
1 answer
2k views

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 ...
Oxwivi's user avatar
  • 2,232
0 votes
1 answer
1k views

How to enable hostname resolving in Debian? [closed]

I have installed Debian on a dedicated server. The company that leases this server gave me 3 addresses: DMZ IP Mask Gateway The server cannot resolve hostnames. So when I use ping with IP- it works. ...
Tom's user avatar
  • 227
1 vote
1 answer
2k views

Configure dnsmasq to translate local names for iPhones

I've found that iPhone 5S won't resolve name of the host of the local network by it's name. It is only possible when adding .local suffix to the hostname, e.g. instead of asking (like on a Linux host):...
K. Koovalsky's user avatar
0 votes
1 answer
827 views

Host command successful but DNS won't resolve

I'm trying to complete the setup of my Bind9 DNS server. Both Systems are running Debian Stretch. The serving machine (192.168.0.113) is a VM host and the client machine (192.168.0.104) is its ...
Nathan Wiles's user avatar
0 votes
0 answers
754 views

Cannot change hostname of raspberry pi in local network

I have a clean install of the debian-based OSMC os on a raspberry pi. I've manually set a static IP: $ ifconfig wlan0 wlan0: flags=-28605<UP,BROADCAST,RUNNING,MULTICAST,DYNAMIC> mtu 1500 ...
pmishev's user avatar
  • 101
0 votes
0 answers
233 views

How to fix resolveip returning multiple ip addresses?

I switched to a different distribution on my Raspberry Pi and am facing difficulties dicovering it by its hostname from my notebook. I can ssh to it but not ping it (both works fine using the ip ...
Tim's user avatar
  • 315
0 votes
0 answers
103 views

Websites quit resolving

My Ubuntu 16.04 LTS server which is running VestaCP will no longer resolve my websites. I can connect to my VestaCP control panel via IP, but not via hostname anymore. All my websites show this error ...
David Prentice's user avatar
8 votes
2 answers
2k views

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 ...
Inquisitor Shm's user avatar
1 vote
1 answer
779 views

How do I figure out what is answering a DNS resolution call?

Let's say I have inside of my hosts file an entry for foobar, how do I find out if that file is used or if a remote DNS is answering the resolution for foobar? Do any of the basic utilities give back ...
Evan Carroll's user avatar
1 vote
1 answer
411 views

Apache httpd on CentOS doesn't mask IP to domain

I was following this tutorial to the letter and when I entered my domain name in the browser, I get my page. Except the fact that the browser never masks the domain to www.example.com, instead it ...
andrralv's user avatar
  • 113
3 votes
2 answers
67 views

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 ...
Ruben's user avatar
  • 133
1 vote
2 answers
4k views

Name resolution in busybox

I have a statically linked busybox and want to be able to write busybox telnet foo. How do I specify the address of "foo"? Do I really need /etc/nsswitch.conf and the corresponding dynamic libraries, ...
michas's user avatar
  • 21.2k
3 votes
0 answers
2k views

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/...
user.stackexchange.253690's user avatar
12 votes
5 answers
42k views

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 ...
Juicy's user avatar
  • 3,695
6 votes
2 answers
6k views

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. ...
user avatar
3 votes
0 answers
4k views

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, ...
Savir's user avatar
  • 1,221