Your app needs to resolve internal names like `db.internal` that aren't in public DNS. What options do you have on the host?
IntermediateScenarioNetworking, SSH and remote access
Answer
Situation read → Point the resolver at internal DNS, or use split DNS.
What I'd do →
- Best: configure the internal DNS servers via DHCP or NetworkManager (
ipv4.dns). - With systemd-resolved, route only the internal domain to internal DNS:
sudo resolvectl dns eth1 10.0.0.2
sudo resolvectl domain eth1 '~internal'
(persist in NetworkManager or a .network file).
3. Quick fix for one or two hosts: /etc/hosts.
Why → Split DNS sends *.internal to internal servers and everything else to the normal resolver.
Interview tip → Mention /etc/nsswitch.conf controls whether /etc/hosts or DNS is consulted first.
More on Networking, SSH and remote access
A key belonging to a departed engineer may be in `authorized_keys` on 300 servers. How do you rotate SSH keys across the fleet?IntermediateYou need to reach a database on a private subnet from your laptop through a bastion. How?BeginnerYour security team wants SSH hardened on all servers. What changes do you make?BeginnerA new server needs a static IP, gateway and DNS on RHEL 9. How do you configure it persistently?BeginnerYou're changing the network config of a remote server over SSH and could lose access. How do you protect yourself?IntermediateA web server should accept HTTP/HTTPS from anywhere but SSH only from the office. Configure the firewall.Beginner