How does Bruno resolve DNS? #5568
-
I have an issue resolving a URL: Browser, curl, ping, nslookup all resolve correctly. If I connect to the IP address instead of the URL, it also resolves. (But I want the hostname resolution to be part of the tests, so just configuring IP's is not desirable.) I've scoured all the settings, docs and issues, but it is still unclear to me how Bruno resolves DNS (and how I can fix this issue). |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @JJ-Kamminga Bruno internally uses const axios = require('axios');
async function main() {
try {
const res = await axios.get('https://www.google.com');
console.log('Status:', res.status);
console.log('Headers:', res.headers['content-type']);
console.log('Body length:', res.data.length);
} catch (err) {
console.error('Request failed:', err.message);
}
}
main(); Also, has this worked in a previous API client that you were using ? |
Beta Was this translation helpful? Give feedback.
I tried this and it resolves too.
It did get me thinking and tried some other packages, and solved the issue by using the snap.
Before, I used the flatpak. So it looks like the issue is there.