@nafmo said in Wrong DNS lookup for host name:
I only get a single IP, but the IP returned is different when using the intranet DNS and what is available on the public internet. Vivaldi keeps using the IP address resolved on the public internet, which is not what the rest of my computer sees.
I try to check on my Debian 12 with Bind9 DNS server later.
//EDIT: There is no need for a edited hosts file!
In resolv.conf the nameservers are first localhost (with Bind9) and then the external one in LAN (is the router).
All nice.
For the domain which is only on internal IPs, Vivaldi uses them and not the external ones.
resolv.conf:
search router.box
nameserver 127.0.0.1
nameserver ::1
nameserver 192.168.178.1
named.conf.local:
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
zone "gwendragon.de" {
type master;
file "/etc/bind/db.gwendragon.de"; # zone file path
};
named.conf.options:
acl "trusted" {
192.168.0.0/16;
localhost;
localnets;
};
options {
directory "/var/cache/bind";
// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See http://www.kb.cert.org/vuls/id/800113
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
// forwarders {
// 0.0.0.0;
// };
recursion yes;
allow-query { trusted; };
//========================================================================
// If BIND logs error messages about the root key being expired,
// you will need to update your keys. See https://www.isc.org/bind-keys
//========================================================================
dnssec-validation auto;
listen-on-v6 { any; };
};
Bind9 data file:
;
; BIND data file for gwendragon.de
;
$TTL 604800
@ IN SOA ns1.gwendragon.de. admin.localhost. (
125 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns1.gwendragon.de.
@ IN A 192.168.0.100
ns1 IN A 192.168.0.1
www IN A 192.168.178.1
intern IN A 192.168.20.20
mail IN A 192.168.0.3
ftp IN A 192.168.0.4
It Vivaldi is not resolving wrong with DNS.
It connects to all these internal IPs with subdoamins.
I do not know about config of your LAN but something must be wrong.
But i am not here for unpaid help to debug wrong Linux/Windows servers/PC DNS and network configurations. š¤·ā