Create /etc/resolv.conf may not work
Brought to you by:
gopu
dnsupdate in create mode (-f option) would
create /etc/resolv.conf. But it may not happen in most
cases, since a function call, RestartNamed would
return some vague value and would exit before creating
the resolv.conf file. This was because, I forgot to
add a return SUCCESS as the last line in the
RestartNamed function, hence it would return some
arbitrary value.
This patch fixes it in both version 1.0 and 1.1.
How to patch:
> cd dnsupdate
> patch util.c < util.c.patch
If u r unable to get patch working, add the following
line as the last line of the function RestartNamed in
util.c:
return SUCCESS;
util.c.patch - Text file in UNIX format