How do I make outbound requests from my Linode default to IPv4 or IPv6?

Linode Staff

How do I set my Linode to send outbound requests over a specific IP protocol (IPv4 or IPv6)?

1 Reply

To make outbound requests default to either IPv4 or IPv6, you can edit /etc/gai.conf. I found a couple of posts which discuss how to do this on CentOS and Ubuntu systems:


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct