minor refactor of pagination and resolv.conf