ZNC Bindhost change #599

Closed
opened 2026-10-05 04:32:25 +02:00 by adam · 13 comments
Owner

http://i.imgur.com/G3zkjSh.png Local host: omg.you.are.so.gay.hello2.us (94.23.207.50)
[14:33:41] <_status> This user's default bind host is [2001:41D0:2:5232::1337]
[14:33:41] <_status> This network's bind host is [92.222.207.220]

I did everything what I could do but I can't change my bindhost.
How do I fix this issue now?
My Config: http://p.maz.rocks/paste/560542d667277

http://i.imgur.com/G3zkjSh.png Local host: omg.you.are.so.gay.hello2.us (94.23.207.50) [14:33:41] <_status> This user's default bind host is [2001:41D0:2:5232::1337] [14:33:41] <_status> This network's bind host is [92.222.207.220] I did everything what I could do but I can't change my bindhost. How do I fix this issue now? My Config: http://p.maz.rocks/paste/560542d667277 <!-- github-sync-id:108319108 -->
adam closed this issue 2026-10-05 04:32:25 +02:00
Author
Owner

Are you sure you own the IP 92.222.207.220? What is the output of ip addr in your terminal?

Are you sure you own the IP 92.222.207.220? What is the output of `ip addr` in your terminal? <!-- github-comment-id:143216002 -->
Author
Owner

http://p.maz.rocks/paste/5605471e194dd
All IP's;
IP Address:
94.23.207.50
94.23.147.183
178.32.47.92
178.32.59.254
188.165.29.87
87.98.246.190
92.222.207.220
92.222.207.221
92.222.207.222
92.222.207.223

http://p.maz.rocks/paste/5605471e194dd All IP's; IP Address: 94.23.207.50 94.23.147.183 178.32.47.92 178.32.59.254 188.165.29.87 87.98.246.190 92.222.207.220 92.222.207.221 92.222.207.222 92.222.207.223 <!-- github-comment-id:143216415 -->
Author
Owner
Debug logs; http://p.maz.rocks/paste/56054a8a99071 <!-- github-comment-id:143218186 -->
Author
Owner

According to the debug log, you are connectiong from 92.222.207.220.

$ dig -x 92.222.207.220 | grep HEADER
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 25754

That IP doesn't have a reverse DNS entry (status: NXDOMAIN, no such domain).

Assuming you want your vhost to be omg.you.are.so.gay.hello2.us, you should try using 94.23.207.50 instead (or specifying omg.you.are.so.gay.hello2.us that directly as your bindhost)

According to the debug log, you are connectiong from 92.222.207.220. ``` $ dig -x 92.222.207.220 | grep HEADER ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 25754 ``` That IP doesn't have a reverse DNS entry (status: NXDOMAIN, no such domain). Assuming you want your vhost to be `omg.you.are.so.gay.hello2.us`, you should try using 94.23.207.50 instead (or specifying `omg.you.are.so.gay.hello2.us` that directly as your bindhost) <!-- github-comment-id:143220356 -->
Author
Owner

Let me clarify, I am trying to use the ip 92.222.207.220 to connect to the networks (without rdns, that’s right).
The 94.23.207.50 ip is the network interface that my znc service itself is listening on.
I configured the 92.222.207.220 IP address as bindhost, but znc still uses 94.23.207.50

Let me clarify, I am trying to use the ip 92.222.207.220 to connect to the networks (without rdns, that’s right). The 94.23.207.50 ip is the network interface that my znc service itself is listening on. I configured the 92.222.207.220 IP address as bindhost, but znc still uses 94.23.207.50 <!-- github-comment-id:143228629 -->
Author
Owner

psychon, I just want the vhost to be blank.

psychon, I just want the vhost to be blank. <!-- github-comment-id:143234605 -->
Author
Owner
Network settings; http://p.maz.rocks/paste/56055b8d318da <!-- github-comment-id:143239723 -->
Author
Owner

I want the vhost to be blank

@mazlumb what exactly do you mean by 'blank'? There is never going to be a 'blank' rDNS entry / vHost. Whenever you connect to a network it will either be the IP or the rDNS. You also have to cycle your connection if you're giving a different bind host. (It may also need to be put in the ZNC bindhosts list)

> I want the vhost to be blank @mazlumb what exactly do you mean by 'blank'? There is never going to be a 'blank' rDNS entry / vHost. Whenever you connect to a network it will either be the IP or the rDNS. You also have to cycle your connection if you're giving a different bind host. (It may also need to be put in the ZNC bindhosts list) <!-- github-comment-id:143285308 -->
Author
Owner

@teward I have a rDNS now on the ip, 92.222.207.220 to yo.i.want.titsorgtfo.me and it still doesn't connect via dat ip.

@teward I have a rDNS now on the ip, 92.222.207.220 to yo.i.want.titsorgtfo.me and it still doesn't connect via dat ip. <!-- github-comment-id:143314759 -->
Author
Owner

netstat -tpan | grep znc, please (which hopefully only includes the connection of your test instance of znc).

If znc says using bindhost [92.222.207.220], then it really thinks it is using that IP. Something else must be messing with this.

Can you connect elsewhere with this bindhost e.g. via telnet?

`netstat -tpan | grep znc`, please (which hopefully only includes the connection of your test instance of znc). If znc says `using bindhost [92.222.207.220]`, then it really thinks it is using that IP. Something else must be messing with this. Can you connect elsewhere with this bindhost e.g. via telnet? <!-- github-comment-id:143320571 -->
Author
Owner

@psychon
root@omg:~# netstat -tpan | grep znc
tcp 0 0 92.222.207.220:38332 37.48.109.201:6667 ESTABLISHED 20798/znc
tcp6 0 0 :::1337 :::* LISTEN 20798/znc
tcp6 0 0 94.23.207.50:1337 163.158.219.10:44126 ESTABLISHED 20798/znc

root@mazlum:pts/0-> /root (0)

telnet 92.222.207.220
Trying 92.222.207.220...
telnet: Unable to connect to remote host: Connection refused

@psychon root@omg:~# netstat -tpan | grep znc tcp 0 0 92.222.207.220:38332 37.48.109.201:6667 ESTABLISHED 20798/znc tcp6 0 0 :::1337 :::\* LISTEN 20798/znc tcp6 0 0 94.23.207.50:1337 163.158.219.10:44126 ESTABLISHED 20798/znc root@mazlum:pts/0-> /root (0) > telnet 92.222.207.220 > Trying 92.222.207.220... > telnet: Unable to connect to remote host: Connection refused <!-- github-comment-id:143320911 -->
Author
Owner

tcp 0 0 92.222.207.220:38332 37.48.109.201:6667 ESTABLISHED 20798/znc

it looks like bindhost is working to me.

telnet 92.222.207.220

I think @psychon wanted you to connect from that address to somewhere, but I cannot find how to specify bindhost with telnet.

> tcp 0 0 92.222.207.220:38332 37.48.109.201:6667 ESTABLISHED 20798/znc it looks like bindhost is working to me. > telnet 92.222.207.220 I think @psychon wanted you to connect _from_ that address to somewhere, but I cannot find how to specify bindhost with telnet. <!-- github-comment-id:143401737 -->
Author
Owner

(echo USER a b c d ; echo NICK hopefullyunused ; sleep 30 ) | telnet -b 92.222.207.220 irc.spotchat.org 6667

Also, yup. What Mikaela said. ZNC is connecting from 92.222.207.220, so everything is working fine.

`(echo USER a b c d ; echo NICK hopefullyunused ; sleep 30 ) | telnet -b 92.222.207.220 irc.spotchat.org 6667` Also, yup. What Mikaela said. ZNC is connecting from 92.222.207.220, so everything is working fine. <!-- github-comment-id:143405927 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/znc#599