Presumably your intention is a reverse-lookup of all network interfaces. Be aware that by reverse lookup you may trigger security alarms, since it looks like scanning available resources. Basically you'd enumerate all network devices, get their IPs and do a reverse lookup with the help of (outbound) DNS-services.
The first part is easy:
This lists all network devices and their IP-addresses. With this you can use your favorite DNS-query tool to reverse-lookup, e.g. dig, nslookup, …
Your question for all domains is rather general and maybe you don't mean domain as in a URL's domain part. A server may expose multitudes of HTTP-based applications, assigned to them based on the Host-parameter of a HTTP-request. Also the server might be a virtual one.
To stay safe, check configuration files on the server only, maybe use
grep to get them all. Apache Web Server and Nginx don't differ that much and often use a configuration named http.conf (importing many others). They're often found in /etc/apache or similar.