Hostname as Target instead of IP

I installed the latest community docker container in a new Debian 12 Bookworm OS (Debian running in a VM-VMWare, bridged to network adapter).

I can reach the web interface from outside via IP and all feeds are synced. Now I want to enter a new target, but instead of a IP, I want to enter the hostname of the device. Is this possible?

I followed the instructions in this thread but this doenst work for me. Greenbone cant find the hostname.

@ottelo_rbk I assume that you DNS resolution is broken. fix it and then it just works?

If you are not familiar with docker, then maybe the full host installation is better solution?

Eero

I now installed docker inside a Ubuntu VM, I gave up with Debian. But I use this simple/easy docker image:

https://immauss.github.io/openvas/

Ping host name works in Ubuntu without using .local because I add local to dns-search via nmcli.

/etc/systemd/resolved.conf:
[Resolve]
LLMNR=yes
MulticastDNS=yes

nmcli connection modify LAN1 ipv4.dns-search local
nmcli connection up LAN1

But use a hostname as target in Greenbone doesnt work :frowning:

And inside your docker DNS resolver is working ?

I don´t think so. Do a docker exec and check is you can do a reverse lookup.

1 Like

Its now working:

2 Likes

This topic was automatically closed after 90 days. New replies are no longer allowed.