문제
- 어플리케이션 실행 시, ERROR 로그 발생
Unable to load io.netty.resolver.dns.macos.MacOSDnsServerAddressStreamProvider, fallback to system defaults. This may result in incorrect DNS resolutions on MacOS. Check whether you have a dependency on 'io.netty:netty-resolver-dns-native-macos'. Use DEBUG level to see the full stack: java.lang.UnsatisfiedLinkError: failed to load the required native library

원인
- Netty에서 macOS 전용 DNS 네이티브 라이브러리를 불러오지 못해서 발생하는 문제
- 특히 macOS 환경에서 DNS 리졸빙 이슈가 주로 발생함
해결
- build.gradle 에 의존성 추가
// Netty의 macOS용 네이티브 DNS 리졸버로 macOS 시스템에 최적화된 DNS 해석 기능을 제공하여, Java 기반의 DNS 리졸버보다 더 빠르고 효율적으로 DNS 해석을 처리
implementation "io.netty:netty-resolver-dns-native-macos:4.1.107.Final:osx-aarch_64"
만약 개발서버와 운영서버는 크라우드 환경인데 혹시 영향이 있지않을까❓이 의존성은 macOS 시스템에서만 동작하는 네이티브 라이브러리이므로클라우드 환경이나 다른 운영체제(Linux, Windows)에서는 영향을 미치지 않고, 클라우드 환경에서는 Java의 기본 DNS 리졸버가 사용되므로 문제가 발생하지 않습니다. |
'트러블슈팅' 카테고리의 다른 글
| 이미지와 데이터 동시 처리 시 발생하는 Multipart 문제 해결 (0) | 2025.04.29 |
|---|---|
| Spring JPA Open-in-View 경고 해결 (0) | 2025.04.24 |
| Spring Data Redis: Repository store assignment 문제 해결 (0) | 2025.04.24 |