I have a BIND setup with two views,
internal responds to queries sent by hosts from the internal network,
external responds to public queries.
Some hosts have only public addresses, so they have only
A record in my public zone file.
But I would like to access (SSH) those hosts also from internal network without typing the whole domain. If my default
search domain is
example.com, for internal traffic to internal hosts I can write
ssh myhost and it works fine (because it has an
A private record in the internal zone file). But for external hosts I must write
ssh myotherhost.example.com (they exists only in the external zone file).
Does BIND views have a way to accomplish this? I could add an
A public record (public address) to my internal zone (private addresses) file, but this brakes the logic.
Best Regards Kamil