I don't want to rewrite /etc/resolv.conf,/etc/printcap,/etc... every time I connect. And I don't want to write a conf-rewriting program every time I install a program. The Nameserver could resolve the fake-names because it would be master for this domain. | [reply] |
What are you trying to accomplish? Do you want name resolution to work regardless of provider? There are three standard solutions to this problem:
- Use provider nameservers. Change /etc/resolv.conf on connections.
- Use local nameserver with forwarding. Change /etc/named.conf.
- Use local caching nameserver. Change named.ca containing root name servers to use fake roots when disconnected. This makes lookup failures when disconnected fast.
Are you trying to solve the problem of stable names for other services? You want to use the same name (smtp.fake) in sendmail config regardless of providers. Running a local nameserver for the .fake zone will do this. But then you need to change the .fake zone file on each connection. And change the forwarding line (or root zone file) as above to make the resolution of other names work. This is doable with BIND.
| [reply] |
Are you trying to solve the problem of stable names for other services? You want to use the same name (smtp.fake) in sendmail config regardless of providers. Running a local nameserver for the .fake zone will do this. But then you need to change the .fake zone file on each connection. And change the forwarding line (or root zone file) as above to make the resolution of other names work.
Yes, thats what I want. But I want to use nsupdate to change
the .fake zone. So it's changing the forwarding line thats the
problem. That was the reason for the question.
| [reply] |