Re: blank resolv.conf
Jan Pohanka
Tue Nov 10 10:29:08 2020
Hi Roy,
> Do your test a few times and when /etc/resolv.conf is blank hopefully the above
> mentioned log file will have loads of data we can look at.
Indeed, I have got something.
This is when I got the correct resolv.conf
+ header='# Generated by dhcpcd from eth0.dhcp'
+ '[' -f /var/run/dhcpcd/resolv.conf.eth0.ra ]
+ '[' -d /var/run/dhcpcd/resolv.conf ]
+ echo '# Generated by dhcpcd from eth0.dhcp'
+ '[' -f /etc/resolv.conf.head ]
+ echo '# /etc/resolv.conf.head can replace this line'
+ printf '%s' 'nameserver 10.42.0.1
'
+ '[' -f /etc/resolv.conf.tail ]
+ echo '# /etc/resolv.conf.tail can replace this line'
+ change_file /etc/resolv.conf /var/run/dhcpcd/resolv.conf.eth0.ra
+ '[' -e /etc/resolv.conf ]
+ comp_file /etc/resolv.conf /var/run/dhcpcd/resolv.conf.eth0.ra
+ '[' -e /etc/resolv.conf ]
+ '[' -e /var/run/dhcpcd/resolv.conf.eth0.ra ]
+ type cmp
+ cmp -s /etc/resolv.conf /var/run/dhcpcd/resolv.conf.eth0.ra
+ rm -f /var/run/dhcpcd/resolv.conf.eth0.ra
+ return 1
+ rm -f /var/run/dhcpcd/resolv.conf.eth0.ra
+ return 0
+ '[' -f /lib/dhcpcd/dhcpcd-hooks/30-hostname ]
+ . /lib/dhcpcd/dhcpcd-hooks/30-hostname
+ : true
+ : localhost
and this is for the blank one
+ header='# Generated by dhcpcd from eth0.dhcp'
+ '[' -f /var/run/dhcpcd/resolv.conf.eth0.ra ]
+ rm -f /var/run/dhcpcd/resolv.conf.eth0.ra
+ '[' -d /var/run/dhcpcd/resolv.conf ]
+ echo '# Generated by dhcpcd from eth0.dhcp'
+ '[' -f /etc/resolv.conf.head ]
+ echo '# /etc/resolv.conf.head can replace this line'
+ printf '%s' 'nameserver 10.42.0.1
'
+ '[' -f /etc/resolv.conf.tail ]
+ echo '# /etc/resolv.conf.tail can replace this line'
+ change_file /etc/resolv.conf /var/run/dhcpcd/resolv.conf.eth0.ra
+ '[' -e /etc/resolv.conf ]
+ comp_file /etc/resolv.conf /var/run/dhcpcd/resolv.conf.eth0.ra
+ '[' -e /etc/resolv.conf ]
+ '[' -e /var/run/dhcpcd/resolv.conf.eth0.ra ]
+ type cmp
+ cmp -s /etc/reso+ rm -f /var/run/dhcpcd/resolv.conf.eth0.ra
+ cat /var/run/dhcpcd/resolv.conf.eth0.ra
cat: can't open '/var/run/dhcpcd/resolv.conf.eth0.ra': No such file or directory
+ rm -f /var/run/dhcpcd/resolv.conf.eth0.ra
+ return 0
+ chmod 644 /etc/resolv.conf
+ rm -f /var/run/dhcpcd/resolv.conf.eth0.ra
+ return 0
+ '[' -f /lib/dhcpcd/dhcpcd-hooks/30-hostname ]
+ . /lib/dhcpcd/dhcpcd-hooks/30-hostname
+ : true
+ : localhost
best regards
Jan
Archive administrator: postmaster@marples.name