Nslookup server name pi.hole

Hi all :slight_smile:

Just a question about nslookup:
When I do a nslookup command on a workstation with pihole's dns, the answer is:
Server: pi.hole
Address: blablabla....

Why it does not display the real name of the DNS server ?
In my etc/hosts I have 127.0.0.1 dns-server.lan dns-server, and /etc/hostname dns-server

Where the pi.hole name come from ?

Thx !

REPLY_ADDR4 (no default, PR #965), doc here

REPLY_ADDR6 (no default, PR #965), doc here

PIHOLE_PTR=true|false (PR #1111), doc here

TL;DR configure REPLY_ADDR4 and REPLY_ADDR6 in /etc/pihole/pihole-FTL.conf to get the reply you want.

In older versions of pi-hole, the address was stored in /etc/pihole/local.list, this file was updated by running pihole -g. The latest version of pihole overwrites this file with a file that only contains a warning (### Do not modify this file, it will be overwritten by pihole -g).

In older versions of pihole, the IPv4 and IPv6 address was also stored in /etc/pihole/setupVars.conf, this to show the pihole IP's in the webinterface. The latest version of pihole doesn't show the pihole IP's anymore in the webinterface, not really sure if the settings have also been removed from the config file...

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.